﻿
using System;
using ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.Geometry;
using QDP.Platform.ObjService;
namespace Services.Maps
{
    /// <summary>
    /// 
    /// </summary>
    /// <remarks></remarks>
    public interface IMapService
    {
        /// <summary>
        /// 向用户界面展示常规地图控件。
        /// </summary>
        void ShowNorMap();
        /// <summary>
        /// 导入一个图层服务
        /// </summary>
        /// <param name="service">要导入的图层服务对象</param>
        void ImportService(ServiceLayer service);
        /// <summary>
        /// 获取当前地图控件。
        /// </summary>
        /// <remarks></remarks>
        Map CurrentMap { get; }
        /// <summary>
        /// 获取当前地图绘制对象。
        /// </summary>
        /// <remarks></remarks>
        Draw DrawTool { get; }
        /// <summary>
        /// 
        /// </summary>
        Draw OtherDraw { get; set; }
        /// <summary>
        /// Gets or sets the initialize extent.
        /// </summary>
        Envelope InitializeExtent { get; set; }
        /// <summary>
        /// Occurs when [draw begin].
        /// </summary>
        /// <remarks></remarks>
        event EventHandler DrawBegin;
        /// <summary>
        /// Occurs when [draw complete].
        /// </summary>
        /// <remarks></remarks>
        event EventHandler<DrawEventArgs> DrawComplete;
        /// <summary>
        /// Occurs when [extent changing].
        /// </summary>
        /// <remarks></remarks>
        event EventHandler<ExtentEventArgs> ExtentChanging;
    }
}
